package cn.jsj.demo.dao;

import cn.jsj.demo.pojo.Cuser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Repository
public interface UserFunction extends BaseMapper<Cuser> {

    @Update("update tb_user set user_name = #{userName} where user_id = #{userID} limit 1")
    public int updateNameByID(@Param("userName") String userName,@Param("userID") Integer userID);
}
